<%@ page language="java" import="java.util.ArrayList, com.erclab.internal.xpresso.options.*" %>
<div id="ReportOptions">
<%  ArrayList reportOptions = theReport.getOptions();
	if (reportOptions != null){ 
		for (int i = 0; i < reportOptions.size(); i++){
			Option o = (Option)reportOptions.get(i);
%>
		<div id="<%=o.getStyle()%>Option">			
			<span class="<%=o.getStyle()%>OptionImage"><img src="<%=o.getImage()%>"></span>
			<span class="<%=o.getStyle()%>OptionLink"><a href="<%=o.getLink()%>"><%=o.getOptionText()%></a></span>
			<% if (Settings.getAdminMode()){ %>
				<span><a href="ReportOptions.form?action=update&uniqueKeyValue=<%=theReport.getIdReport()%>">*</a></span>
			<% } %>
		</div>
<%  	}
	} 
	// Display Admin Options
	if (Settings.getAdminMode()){ %>
	<div id="AdminOptions">
		<div id="AdminReport">
			<a href="Reports.config.form?action=update&uniqueKeyValue=<%=theReport.getIdReport()%>">Edit this report</a>
		</div>
		<div id="AdminReportElements">
			<a href="ReportElements.config.report?uniqueKeyValue=<%=theReport.getIdReport()%>">List Report Elements</a>
		</div>
		<div id="AdminAddFormElement">
			<a href="ReportElement.config.form?action=insert&uniqueKeyValue=<%=theReport.getIdReport()%>">Add Report Element</a>
		</div>
		<div id="AdminListOptions">
			<a href="ReportOptions.config.report?uniqueKeyValue=<%=theReport.getIdReport()%>">List Report Options</a>
		</div>
		<div id="AdminAddOption">
			<a href="ReportOptions.config.form?action=insert&uniqueKeyValue=<%=theReport.getIdReport()%>">Add Report Option</a>
		</div>
	</div>
<%	} %>
</div>

